package com.atguigu.service;

import com.atguigu.entity.ProductSalePropertyKey;
import com.atguigu.entity.SkuInfo;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA2020.
 * User: yangchao
 * Date: 2021/11/20:20:12
 * Description:
 */

public interface SkuDetailService {
    //1.根据skuid查询sku info信息
    SkuInfo getSkuInfo(Long skuId);
    //2.根据skuId查询spu的销售属性key与value
    List<ProductSalePropertyKey> getSpuSaleProperty(long productId, long skuId);

    Map getSkuSalePropertyValueIdMapping(long productId);
}
